package top.infopub.mgr.bpa.dao;

import org.apache.ibatis.annotations.Param;
import top.infopub.generic.GenericDao;
import top.infopub.model.bpa.PackageSureDetail;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by wurz on 2021/6/11.
 */
public interface PackageSureDetailDao extends GenericDao<PackageSureDetail, String> {

    /**
     * 批量插入记录
     * @param packageSureDetails
     * @see
     */
    void insertByBatch(List<PackageSureDetail> packageSureDetails);

    /**
     * 根据分项名称和设备合同id查询开累对内确权总金额
     * @param subName 分项名称
     * @param refId 设备合同id
     * @return
     * @see
     */
    BigDecimal selectAddupAmountBySubNameAndRefId(@Param("subName")String subName, @Param("refId")String refId);

}
